<?php
//cookie功能测试
//setcookie('name','zs');
//setcookie('tel','12345678901',time()+24*60*60*365);
//setcookie('tel');
//echo "<pre>",print_r($_COOKIE, true),"</pre>";

setcookie('xh','213110601',time()+60*60);//cookie可以在客户计算机上存活100分钟
setcookie('pwd','123qwe',time()+60*60);//删除cookie
setcookie('rememberMe','on',time()+60*60);//删除cookie
echo "<pre>",print_r($_COOKIE, true),"</pre>";